home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / unarced / graphics / pbmplus / pnm / pnmrotate.man < prev    next >
Text File  |  1995-03-17  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.      pnmrotate(1)         AMIGA (12 January 1991)         pnmrotate(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           pnmrotate - rotate a portable anymap by some angle
  10.  
  11.      SYNOPSIS
  12.           pnmrotate [-noantialias] angle [pnmfile]
  13.  
  14.      DESCRIPTION
  15.           Reads a portable anymap as input.  Rotates it by the
  16.           specified angle and produces a portable anymap as output.
  17.           If the input file is in color, the output will be too,
  18.           otherwise it will be grayscale.  The angle is in degrees
  19.           (floating point), measured counter-clockwise.  It can be
  20.           negative, but it should be between -90 and 90.  Also, for
  21.           rotations greater than 45 degrees you may get better results
  22.           if you first use pnmflip to do a 90 degree rotation and then
  23.           pnmrotate less than 45 degrees back the other direction
  24.  
  25.           The rotation algorithm is Alan Paeth's three-shear method.
  26.           Each shear is implemented by looping over the source pixels
  27.           and distributing fractions to each of the destination
  28.           pixels.  This has an "anti-aliasing" effect - it avoids
  29.           jagged edges and similar artifacts.  However, it also means
  30.           that the original colors or gray levels in the image are
  31.           modified.  If you need to keep precisely the same set of
  32.           colors, you can use the -noantialias flag.  This does the
  33.           shearing by moving pixels without changing their values.  If
  34.           you want anti-aliasing and don't care about the precise
  35.           colors, but still need a limited *number* of colors, you can
  36.           run the result through ppmquant.
  37.  
  38.           All flags can be abbreviated to their shortest unique
  39.           prefix.
  40.  
  41.      REFERENCES
  42.           "A Fast Algorithm for General Raster Rotation" by Alan
  43.           Paeth, Graphics Interface '86, pp. 77-81.
  44.  
  45.      SEE ALSO
  46.           pnmshear(1), pnmflip(1), pnm(5), ppmquant(1)
  47.  
  48.      AUTHOR
  49.           Copyright (C) 1989, 1991 by Jef Poskanzer.
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/19/91)
  64.  
  65.  
  66.  
  67.